﻿using StockholmsStad.Runtime.Serialization.DataContract;

namespace StockholmsStad.Windows.UI.Modules.Maintenance.Models
{
    public class DepersonateCouple : Couple
    {
        public bool Depersonate { get; set; }

        public string Email
        {
            get
            {
                if (ContactPerson != null && !string.IsNullOrEmpty(ContactPerson.Email))
                {
                    return ContactPerson.Email;
                }
                if (Person1 != null && !string.IsNullOrEmpty(Person1.Email))
                {
                    return Person1.Email;
                }
                return "";
            }
        }
    }
}
